package com.roc.service.profit;

import java.math.BigDecimal;
import java.util.Map;

import com.roc.pojo.Operators;
import com.roc.service.ServiceException;

public interface IProfitService {

	Map getOpertorsIdsTreeById(Long id) throws ServiceException;
	
	Map getDirectlyAgentIdsTreeBySuperId(Long id) throws ServiceException;
	
	Map getDirectlyAgentIdsTreeByRealId(Long id) throws ServiceException;
	
	String getOpertorsIdsById(Long id) throws ServiceException;
	
	String getOpertorsScIdById(Long id) throws ServiceException;
	
	String getDirectlyAgentIdsBySuperId(Long id) throws ServiceException;
	public Operators loadById(long id) throws ServiceException;
	
	//查询代理商分润规则
	Map<String,BigDecimal> queryProfitRule(String accountNo) throws ServiceException;
	
	Operators getOpertorsByAccountNo(String  accountNo) throws ServiceException;
	
	public String getProfitPercent(String accountNo , BigDecimal transAmount) throws ServiceException ;

	Map getYsbOpertorsIdsTreeById(Long id,String roleType) throws ServiceException;

	Map getYsbDirectlyAgentIdsTreeBySuperId(Long id) throws ServiceException;

}
